.class Lcom/instagram/creation/video/mediarecorder/t;
.super Landroid/os/Handler;
.source "StabilizedMediaRecorder.java"


# instance fields
.field final synthetic a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

.field private b:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;


# direct methods
.method public constructor <init>(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;Landroid/os/Looper;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 1058
    iput-object p1, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    .line 1059
    invoke-direct {p0, p3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    .line 1060
    iput-object p2, p0, Lcom/instagram/creation/video/mediarecorder/t;->b:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    .line 1061
    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4
    .parameter "msg"

    .prologue
    .line 1081
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->b:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->a(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)I

    move-result v0

    if-nez v0, :cond_1

    .line 1082
    const-string v0, "MediaRecorder_IG"

    const-string v1, "mediarecorder went away with unhandled events"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 1110
    :cond_0
    :goto_0
    return-void

    .line 1085
    :cond_1
    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    .line 1109
    const-string v0, "MediaRecorder_IG"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Unknown message type "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget v2, p1, Landroid/os/Message;->what:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->e(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 1088
    :sswitch_0
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->b(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/g;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1089
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->b(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/g;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/mediarecorder/t;->b:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    iget v2, p1, Landroid/os/Message;->arg1:I

    iget v3, p1, Landroid/os/Message;->arg2:I

    invoke-interface {v0, v1, v2, v3}, Lcom/instagram/creation/video/mediarecorder/g;->a(Lcom/instagram/creation/video/mediarecorder/f;II)V

    goto :goto_0

    .line 1095
    :sswitch_1
    iget v0, p1, Landroid/os/Message;->arg1:I

    packed-switch v0, :pswitch_data_0

    .line 1102
    :cond_2
    :goto_1
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->d(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/h;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1103
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->d(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/h;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/creation/video/mediarecorder/t;->b:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    iget v2, p1, Landroid/os/Message;->arg1:I

    iget v3, p1, Landroid/os/Message;->arg2:I

    invoke-interface {v0, v1, v2, v3}, Lcom/instagram/creation/video/mediarecorder/h;->b(Lcom/instagram/creation/video/mediarecorder/f;II)V

    goto :goto_0

    .line 1097
    :pswitch_0
    const-string v0, "MediaRecorder_IG"

    const-string v1, "yay, found timestamps!"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 1098
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->c(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/d;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 1099
    iget-object v0, p0, Lcom/instagram/creation/video/mediarecorder/t;->a:Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;

    invoke-static {v0}, Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;->c(Lcom/instagram/creation/video/mediarecorder/StabilizedMediaRecorder;)Lcom/instagram/creation/video/mediarecorder/d;

    move-result-object v1

    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Lcom/instagram/creation/video/mediarecorder/d;->a(J)V

    goto :goto_1

    .line 1085
    :sswitch_data_0
    .sparse-switch
        0x1 -> :sswitch_0
        0x2 -> :sswitch_1
        0x64 -> :sswitch_0
        0x65 -> :sswitch_1
    .end sparse-switch

    .line 1095
    :pswitch_data_0
    .packed-switch 0x4b2
        :pswitch_0
    .end packed-switch
.end method
